package day0423;

/**
 * @Author Stringzhua
 * @Date 2024/4/23 13:17
 * description:关灯命令
 */
public class LightOffCommand implements Command {
    private Light light;

    public LightOffCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.turnOff();
    }
}
